﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ServiceClassification.aspx.cs"
    Inherits="Main_ServiceInvoice_ServiceClassification" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/accounts.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function ReturnValue(hidControl, lblControl) {
            var serviceId = document.getElementById(hidControl).value;
            var serviceName = document.getElementById(lblControl).innerHTML;
            var requsetServiceId = document.getElementById("hidServiceIdControl").value;
            var requsetServiceName = document.getElementById("hidServiceNameControl").value;
            if (serviceId != '' && serviceName != '') {
                window.opener.document.getElementById(requsetServiceId).value = serviceId;
                window.opener.document.getElementById(requsetServiceName).value = serviceName;
                window.close();               
            }
        }
        function SetFocus(id) {
            document.getElementById(id).focus();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hidServiceIdValue" runat="server" />
    <asp:HiddenField ID="hidServiceIdControl" runat="server" />
    <asp:HiddenField ID="hidServiceNameControl" runat="server" />
    <div>
        <div class="headtd" style="margin-bottom: 10px; border-top: 1px solid #818181; width: 100%;
            margin-top: 10px; font-size: 12px; font-weight: bold;">
            <asp:Label ID="Lblhead" runat="server" Text="Service Tax Classification"></asp:Label>
        </div>
        <asp:GridView ID="GrdClassification" runat="server" AutoGenerateColumns="false" CssClass="gridview"
            RowStyle-CssClass="gridviewitem"
            PagerStyle-CssClass="pgr" EmptyDataRowStyle-CssClass="emptyrow" OnRowDataBound="GrdClassification_OnRowDataBound" EmptyDataText="No Record Exist!">
            <Columns>        
                <asp:TemplateField HeaderText="S.No.">
                    <ItemTemplate>
                        <%# Container.DataItemIndex+1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Service Tax Classification">
                    <ItemTemplate>
                        <asp:Label ID="lblServiceName" runat="server" Text='<%#Eval("SERVICENAME") %>'></asp:Label>
                        <asp:HiddenField ID="hidServiceId" runat="server" Value='<%#Eval("ServiceId") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ACHEADST" HeaderText="Service Tax A/c Code" />
                <asp:BoundField DataField="ACHEADOTHERS" HeaderText="Other Tax A/c Code" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
